#set(Article obj)
<form action="save" method="post" id="addform" style="width:860px;height:560px;">
	<input id="id" name="id" type="hidden" value="${obj.get('id')}"/>
    <p><label>文章标题：</label><input id="name" name="name" type="text" style="width:400px;" value="${obj.get('name')}" required/>
    <label>文章副标题：</label><input id="order" name="order"  style="width:200px;"  required style="width:60px;" value="${order}${obj.get('menu_order')}"/></p>
    <p><label>文章来源：</label><input id="order" name="order" required style="width:100px;" value="${order}${obj.get('menu_order')}"/>
    <label>文章分类：</label><select id="parentId" name="pid">
    <option value="-1">请选择栏目父节点</option>
    #for(TreeData data:list)
    	<option value="${data.id}">${data.text}</option>
    	#if(data.children!=null)
    		#for(TreeData data2:data.children)
    		<option value="${data2.id}">&nbsp;&nbsp;&nbsp;&nbsp;${data2.text}</option>
    		#end
    	#end
    #end
    </select></p>
	<p><script id="container" name="content" type="text/plain"></script></p>
	<!-- 配置文件 -->
	<script>
	window.UEDITOR_HOME_URL = "/js/ueditor/";
	</script>
    <script type="text/javascript" src="/js/ueditor/ueditor.config.js"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" src="/js/ueditor/ueditor.all.js"></script>
    <!-- 实例化编辑器 -->
    <script type="text/javascript">
        var ue = UE.getEditor('container',{
        	initialFrameWidth:840,
        	initialFrameHeight:320,
        	autoHeightEnabled:false,
        	zIndex:999999
        });
    </script>
</form>
<style>
<!--
#addform p { padding:5px;  }
#addform input,#addform textarea,#addform select { width:13em; padding:4px; border:1px solid #CCC;}
#addform .radio { width:2em; padding:4px; border:1px solid #CCC; }
#addform input:focus { border-color:#426DC9; }
#addform .login-form-error { background:#FFFBFC; border-color:#F00 !important; }
.input {
	border: 1px solid #999;
	background-color: #fff;
	box-shadow: inset 0 1px rgba(0,0,0,.15);
	padding: 5px;
}
.input[disabled] {
	background-color: #eee;
	box-shadow: none;
}
-->
</style>
<script type="text/javascript">
$("#addform").html5Validate(function(){
	$.ajax({
		url:'save',
		type:'post',
		dataType:'json',
		data:$("#addform").serialize(),
		success:function(d){
			if(d.success){
				$.dialog({title:'提示',content:'操作成功'}).time(3);	
				api.close();
			}else{
				$.dialog({title:'提示',content:d.msg}).time(3);
				api.close();
			}
			reloadMe();
		},
		error:function(){
			$.dialog({title:'提示',content:'操作失败,服务器错误.'}).time(3);	
			api.close();
		}
	});
});
var status = "${obj.get('status')}";
var pid = "${obj.get('parent_id')}";
$("#status").val(status);
$("#parentId").val(pid);
</script>